package com.spring.applicationEvent_demo;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

@Data
public class BlackListEvent extends ApplicationEvent {

	private final String address;
	private final String content;

	public BlackListEvent(Object source, String address, String content) {
		super(source);
		this.address = address;
		this.content = content;
	}

	// accessor and other methods...
}